package com.Dao;

import com.POJO.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

@Mapper
public interface AdminDao extends BaseMapper<Admin> {
    @Select("SELECT SUM(money) AS total_money FROM orders")
    BigDecimal getOrderTotalMoney();
    @Select("SELECT SUM(money) AS total_money FROM po")
    BigDecimal getPoTotalMoney();
}
